package cn.kgc.service;

import cn.kgc.bean.System;
import cn.kgc.bean.*;
import com.github.pagehelper.PageInfo;

public interface HouseService {
    //查询全部
    public PageInfo<House> selectAllHouse(Integer pageNum, Integer pageSize, String frname, String housename, String houseaddr);
    //增加
    public Integer addHouse(House house);
    //删除
    public Integer delHouse(Integer id);
    //根据id查询
    public House selectById(Integer id);
    //修改
    public Integer updateHouse(House house);
    /*登录*/
    public Manage login(String username, String password);
    /*注册公寓*/
    public int registHouse(House house, Manage manage);
    //*发送注册验证码*//*
    public String sendCode(String phone);
    /*根据帐号查询总管理员信息*/
    public Manage selectZmanagerByUsername(String username);
    /*增加总管理员*/
    public int addZmanager(Manage zmanager);
    /*动态修改总管理员*/
    public int updateZmanager(Manage zmanager);
    /*获取系统通知*/
    public System selectSystem();
    /*入住登记(一)*/
    public int add1(Integer liverid,Integer roomid,Integer houseid);
    /*入住登记(二)*/
    public int add2(Liver liver);
    /*管理员注册提交*/
    public int houseregist(Manage manage);
//    发送邮箱验证码
    public String sendEmail(String email);
    /*公寓管理员绑定邮箱*/
    public int bindEmail(String email,Integer id);
    /*管理员找回密码*/
    public int forget(String email);
    /*根据邮箱查询管理员*/
    public Manage getManageByEmail(String email);
    /*管理员密码重置*/
    public void reset(String newpassword,Integer id);
    /*根据公寓id查询住户信息*/
    public PageInfo<Liver> getLivers(Integer pageNum,Integer pageSize,Integer houseid,String livername,Integer roomid);
    /*增加房间*/
    public int addroom(Room room);
}
